package software_construction.PatternProject.d2_factory.demo4;


import software_construction.PatternProject.d2_factory.demo4.cpu.Cpu;
import software_construction.PatternProject.d2_factory.demo4.factory.IntelFactory;
import software_construction.PatternProject.d2_factory.demo4.memory.Memory;

public class ClientTest {
    public static void main(String[] args) {
        ComputerStore computerStore = new ComputerStore();
        Cpu cpu=computerStore.orderCpu(new IntelFactory());
        Memory memory= computerStore.orderMemory(new IntelFactory());
//        cpu.calculate();
//        memory.storage();
        System.out.println(cpu.getName());
        System.out.println(memory.getName());
    }
}
